import instance from '@/utils/request'
import {applyshop, memberinfo,memberid,Get_LJshouy,GetMemberListInfoDataReq } from '@/types/reqtypes'
//提交注册申请
export function Apply(params: applyshop){
    return instance.post("/saveData",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//获取用户信息
export function GetMemberInfo(params: memberinfo){
    return instance.post("/GetMemberInfo",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//获取用户信息
export function GetapplyList(params: memberid){
    return instance.post("/GetapplyList",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//会员自购累计总额
export function Get_LJshouy(params: memberid){
    return instance.post("/Get_LJshouy",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//根据主推广人id获取对应粉丝数量
export function GetMemberNumber(params: memberid){
    return instance.post("/GetMemberNumber",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//获取主推广人下会员列表
export function GetMemberListInfoData(params: GetMemberListInfoDataReq){
    return instance.post("/GetMemberListInfoData",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}
//店铺个人信息获取
export function GetmemberInfoDP(params: memberid){
    return instance.post("/GetmemberInfoDP",
        params
    ).then(data => [true, data])
    .catch(err => [false,err])
}

